<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>

</head>
<script>
      $(function(){
      });
     var selectMsg = function(){
         var centre = $("#centre").val();
        window.location.href=encodeURI("${contextPath}/index/periodList.htm?centre="+centre);
      }
</script>
<body>
	<div id="home_link">
		<ul>
			<li>工作管理</li>
			<li>&gt;</li>
			<li class="current">员工反馈列表</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">员工反馈列表</div>
		
		<table class="form_table">
			<tbody>
			<tr class="even_row">
				<td>
				<select id="centre" >
					<option value=""></option>
	            		<#if office_List??>
	              			<#list office_List as ls>
	              				<option value="${ls.name}">${ls.name}</option>
	              			</#list>
	            		</#if>
	            	</select>	
	            	<input type="button" value=" 查 询 " onclick="selectMsg()" />
					<a href="${contextPath}/index/addPeriod.htm"><input type="button" value=" 添加员工反馈信息 "></a>
				</td>
			</tr>
			</tbody>
		<table>
			<tr class="fields">
				<th width="200">中心</th>
				<th width="200">姓名</th>
				<th width="200">岗位</th>
				<th width="200">状态</th>
				<th width="200">评价</th>
				<th width="200">备注</th>
				<th width="200">操作</th>
			</tr>
			<#list list as list>
				<tr class="even_row">
					<td align="center"><#if list.centre??>${list.centre}</#if></td>
					<td align="center"><#if list.name??>${list.name}</#if>
					<td align="center">
					<#if list.station?exists>
                       <#if list.station=="1">中心主任</#if>
                       <#if list.station=="2">销售主管</#if>
                       <#if list.station=="3">区域主管</#if>
                       <#if list.station=="4">家庭教师</#if>
                       <#if list.station=="5">训练老师</#if>
                       <#if list.station=="6">课程顾问</#if>
                       <#if list.station=="7">区域监管</#if>
                       <#if list.station=="8">培训副主管</#if>
                       <#if list.station=="9">在线课程顾问</#if>
                       <#if list.station=="10">行政前台</#if>
                       <#if list.station=="11">培训副主管</#if>
                       <#if list.station=="12">市场专员</#if>
                       <#if list.station=="13">幼教老师</#if>
                       <#if list.station=="14">运营督导</#if>
                       <#if list.station=="15">招聘专员</#if>
                       <#if list.station=="16">中心班主任</#if>
                    </#if>
                    </td>
                    <td align="center">
					<#if list.state?exists>
                       <#if list.state=="1">试用期</#if>
                       <#if list.state=="2">建议辞退</#if>
                       <#if list.state=="3">转正，稳定</#if>
                       <#if list.state=="4">转正，有离职打算</#if>
                       <#if list.state=="5">转正、已经提出离职</#if>
                       <#if list.state=="6">怀孕在岗</#if>
                       <#if list.state=="7">怀孕，停薪留职</#if>
                       <#if list.state=="8">停薪留职</#if>
                       <#if list.state=="9">新中心储备人员</#if>
                       <#if list.state=="10">临时调动中心人员</#if>
                       <#if list.state=="11">其他</#if>
                    </#if>
						
					</td>
					<td align="center">
					<#if list.type?exists>
                       <#if list.type=="1">优秀</#if>
                       <#if list.type=="2">良</#if>
                       <#if list.type=="3">及格</#if>
                       <#if list.type=="4">建议调整岗位</#if>
                       <#if list.type=="5">建议辞退</#if>
                    <#else>
                                                            尚未评论
                    </#if>
					</td>
					<td title="${list.beizhu}" contenteditable="true" align="center">
						<#if (list.beizhu?length > 15)>${list.beizhu?substring(0,10)}...<#else>
						${list.beizhu}</#if></td>
	                <td align="center"><a href="${contextPath}/index/addPeriod.htm?id=${list.id}">编辑-</a>
	                <a href="${contextPath}/index/delete_period.htm?id=${list.id}">-删除</a></td>
				</tr>
			</#list>
		</table>
	</div>
	<div id="pager" style="width: 820px;">
	<ul id="pagination">
		<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
		<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
	<#if currpage==1 >
		<li class="previous-off">上一页</li>
		<#else>
		<li class="previous"><a href="${contextPath}/index/periodList.htm?currPage=${currpage-1}">上一页</a></li>
		</#if>
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/index/periodList.htm?currPage=${index_up}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/periodList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/index/periodList.htm?currPage=${pagetotal}">${pagetotal}</a></li>  
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/index/periodList.htm?currPage=1">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/periodList.htm?currPage=${index_up}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/index/periodList.htm?currPage=${pagetotal}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/index/periodList.htm?currPage=1">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/periodList.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/index/periodList.htm?currPage=${currpage+1}">下一页</a></li>
		</#if>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
	</ul>
	</div>
	<div class="emptyline clear"></div>
</body>
</html>